const mongoose = require("mongoose")
mongoose.connect("mongodb://localhost:27017/quest", { useNewUrlParser: true, useUnifiedTopology: true })

const answerSchame = mongoose.Schema({
    id: {type: Number, require: true},
    questId: {type: Number, require: true},
    answers: {type: Array},
    pin: {type: Number, require: true},
    ip: {type: String, require: true},
    answerTime: {type: Number, require: true},
})

const AnswerModel = mongoose.model('answer', answerSchame)
module.exports = AnswerModel